﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;
using IBLL;

namespace Web.UserCharge
{
    public partial class charge : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }


        protected void ChargeButton_Click(object sender, EventArgs e)
        {
            String cardId = this.cardId.Value.Trim();
            IChargeOperate a = new ChargeOperate();
            if (a.IsValideCard(cardId))
            {
                Response.Redirect("~/index.htm");
            }
            else {
                Response.Redirect("charge.htm");
            }
        }
    }
}
